//
//  M1LaunchViewController.m
//  NewMarryU
//
//  Created by apple on 2018/7/27.
//  Copyright © 2018年 Cedar. All rights reserved.
//

#import "M1LaunchViewController.h"

@interface M1LaunchViewController ()

@end

@implementation M1LaunchViewController
-(UIStatusBarStyle)preferredStatusBarStyle{
    return UIStatusBarStyleLightContent;
}
-(void)m1_reloadConfig{
    _m1_reloadBtn.hidden = NO;
    _m1_launchImage.image = [UIImage new];
}
- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    _m1_reloadBtn = [UIButton buttonWithType:UIButtonTypeCustom];
    _m1_reloadBtn.layer.cornerRadius = 5;
    _m1_reloadBtn.clipsToBounds = YES;
    [_m1_reloadBtn setBackgroundImage:[UIImage imageNamed:@"btn_color"] forState:0];
    [_m1_reloadBtn addTarget:self action:@selector(m1_reloadBtnClick) forControlEvents:UIControlEventTouchUpInside];
    [_m1_reloadBtn setTitle:@"重新加载" forState:0];
    [_m1_reloadBtn setTitleColor:[UIColor whiteColor] forState:0];
    _m1_reloadBtn.titleLabel.font = m1_font(17);
    _m1_reloadBtn.hidden = YES;
    [self.view addSubview:_m1_reloadBtn];
    
    [_m1_reloadBtn mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.equalTo(self.view);
        make.bottom.equalTo(self.view.mas_centerY);
        make.size.mas_offset(CGSizeMake(120, 44));
    }];
}
-(void)m1_reloadBtnClick{
    if (_m1_reload) {
        _m1_reload();
    }
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
